/*
 * CuerpoCangrejo.h
 *
 *  Created on: 30/09/2013
 *      Author: ezequiel
 */

#ifndef ESFERA_H_
#define ESFERA_H_
#include <vector>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform2.hpp>
#include <glm/gtx/projection.hpp>
#include <iostream>
#include <fstream>
#include "../Camara.h"
#include "../Dibujable.h"

class Esfera : public Dibujable {
public:
	Esfera(const float radius);
	virtual ~Esfera();
	 void render(GLuint handle, glm::mat4* matModelo);
	 void render(GLuint handle);
	 void setCamara(Camara* cam);
private:
	 void crearForma(const float radius, const unsigned int loops, const unsigned int segmentsPerLoop);	//aca metemos la creacion de la forma tambien
	 GLfloat* sphere_vertex_buffer;
	    GLuint* sphere_index_buffer;
	    GLfloat* sphere_texture_buffer;
	    std::vector<float> vertex_buffer;
	    std::vector<unsigned int> index_buffer;
	    std::vector<float> texture_buffer ;
	    Camara* camara;
};

#endif /* CUERPOCANGREJO_H_ */
